@echo off
set EXE_PATH=D:\src\backend\src\go_code\main\main.exe
set EXE_NAME=main.exe

:loop
echo [%date% %time%] 启动程序：%EXE_NAME%
start "" /wait "%EXE_PATH%"
echo [%date% %time%] 程序已退出，5 秒后重新启动...
timeout /t 5
goto loop